package waal.pc.frontend.tiles;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;


public class EmtyTile extends Tile implements ActionListener {

	private static final long serialVersionUID = 1L;

	@SuppressWarnings("unused")
	private int tileNumber; 
	
	public EmtyTile(int tileNumber) {
		super("Empty Tile");
		this.tileNumber = tileNumber;
		this.id = 0;
	}
	
	public Tile getTile() {
		JButton button = new JButton( "new Tile");
		button.addActionListener(this);
		this.add(button);
		return this;			
	}
	
	@Override
	public void closeTile() {
		
	}

	@Override
	protected void hubStart() {
		
	}

	@Override
	protected void hubStop() {
		
	}

	@Override
	public boolean isDigital() {
		return false;
	}

	@Override
	public boolean isInput() {
		return false;
	}

	@Override
	public boolean isOutput() {
		return false;
	}

	@Override
	public boolean isUpdateAble() {
		return false;
	}

	@Override
	public boolean moduleTile() {
		return true;
	}

	@Override
	public void setDimension(int width, int heigh) {
		// TODO Auto-generated method stub

	}

	@Override
	public void actionPerformed(ActionEvent e) {
		// TODO Auto-generated method stub
		
	}

}
